package cn.wolfcode.wolf2w.controller;


import cn.wolfcode.wolf2w.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;


//上传
@RestController
public class UploadController {

    //游记封面(图片)上传
    @PostMapping("/coverImageUpload")
    public Object uploadImg(MultipartFile pic) throws Exception {
        //调用工具类
        String path = UploadUtil.uploadAli(pic);
        return path;
    }




}

